home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / grapties / pcecap / pc-ecap.doc < prev    next >
Encoding:
Text File  |  1992-11-09  |  92.7 KB  |  2,361 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.                                   P C - E C A P
  21.  
  22.                                    Version 2.10
  23.  
  24.  
  25.  
  26.  
  27.                              Program Reference Manual
  28.  
  29.  
  30.                       Copyright (c) 1990-92 by Peter Volpa
  31.                                All Rights Reserved
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.                               _______
  45.                          ____|__     |                (R)
  46.                       --|       |    |-------------------
  47.                         |   ____|__  |  Association of
  48.                         |  |       |_|  Shareware
  49.                         |__|   o   |    Professionals
  50.                       -----|   |   |---------------------
  51.                            |___|___|    MEMBER
  52.  
  53.  
  54.  
  55.                                    Peter Volpa
  56.                                  Circuit Systems
  57.                                  418 Church Road
  58.                           Sicklerville, NJ 08081-1727  USA
  59.  
  60.  
  61.  
  62.  
  63.                                 Table of Contents
  64.                                 -----------------
  65.  
  66.  
  67.  
  68.           Introduction . . . . . . . . . . . . . . . . . . . . .  1
  69.               License  . . . . . . . . . . . . . . . . . . . . .  2
  70.               Ordering Information . . . . . . . . . . . . . . .  3
  71.                 (also registering by credit card)
  72.               Disclaimer, Trademarks, ASP info . . . . . . . . .  4
  73.               System Requirements  . . . . . . . . . . . . . . .  5
  74.               Installing PC-ECAP . . . . . . . . . . . . . . . .  6
  75.  
  76.           Quick Start  . . . . . . . . . . . . . . . . . . . . .  7
  77.  
  78.           Miscellaneous program information :
  79.               Printer configuration  . . . . . . . . . . . . . .  8
  80.               Data format  . . . . . . . . . . . . . . . . . . .  8
  81.               Accessing data files in other directories  . . . .  8
  82.               Memory requirements vs. maximum circuit nodes  . .  8
  83.               Network / Multi-User operation . . . . . . . . . .  9
  84.  
  85.           Getting Started  . . . . . . . . . . . . . . . . . . .  10
  86.           Main Menu Descriptions . . . . . . . . . . . . . . . .  10
  87.               Select input file  . . . . . . . . . . . . . . . .  10
  88.               Edit input file  . . . . . . . . . . . . . . . . .  11
  89.               Analyze circuit  . . . . . . . . . . . . . . . . .  15
  90.               View output data . . . . . . . . . . . . . . . . .  16
  91.               Output to printer  . . . . . . . . . . . . . . . .  16
  92.               Change program settings  . . . . . . . . . . . . .  17
  93.                 (number of sample points, printer type, etc.)
  94.               Quit this program  . . . . . . . . . . . . . . . .  18
  95.  
  96.           Analyzing a Circuit Using PC-ECAP  . . . . . . . . . .  19
  97.               Input format . . . . . . . . . . . . . . . . . . .  20
  98.               Circuit element description  . . . . . . . . . . .  21
  99.               Specifying analysis parameters . . . . . . . . . .  24
  100.                 (group delay, impedance, vswr, return loss)
  101.               An example!  . . . . . . . . . . . . . . . . . . .  26
  102.               Another example (using the Model Maker)  . . . . .  27
  103.  
  104.           Models . . . . . . . . . . . . . . . . . . . . . . . .  30
  105.               References for modeling  . . . . . . . . . . . . .  31
  106.  
  107.           Revision History . . . . . . . . . . . . . . . . . . .  32
  108.  
  109.           Appendix A - Command Line Switches . . . . . . . . . .  33
  110.           Appendix B - Error Messages  . . . . . . . . . . . . .  34
  111.           Appendix C - PC-ECAP to Lotus 1-2-3 file conversion  .  38
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  119.                                                             page 1
  120.  
  121.           Introduction
  122.  
  123.           PC-ECAP is an easy to use AC circuit analysis program which
  124.           analyzes circuits consisting of resistors, capacitors,
  125.           inductors, transformers, transistors (both bipolar and
  126.           FET's), operational amplifiers and transconductance
  127.           amplifiers.
  128.  
  129.           Totally integrated in one package, it contains a full screen
  130.           text editor for preparing analysis input, an electronic
  131.           circuit analyzer that calculates your circuit's frequency
  132.           and phase response, a high resolution display plotter that
  133.           supports all common graphics adapters and a high resolution
  134.           plotter compatible with most printers.
  135.  
  136.  
  137.           Features:
  138.  
  139.                *    Calculates Magnitude, Phase, Group Delay,
  140.                     Impedance, VSWR and Return Loss.
  141.  
  142.                *    Completely menu driven - very easy to use.
  143.  
  144.                *    Can analyze circuits with up to 90 nodes,
  145.                     and with as many as 1000 components.
  146.  
  147.                *    Built in full screen editor with on-line help
  148.                     function.
  149.  
  150.                *    Free input format - common abbreviations such as
  151.                     P, U, N, M, K, MEG, G are recognized.  For
  152.                     example if your circuit has a 47pf capacitor, all
  153.                     you need to enter for its value is 47pf.
  154.  
  155.                *    Supports CGA, EGA, VGA, Hercules, MCGA, AT&T and
  156.                     even the Monochrome Display Adapter.
  157.  
  158.                *    All calculations are done in 15 digits of double
  159.                     precision.
  160.  
  161.                *    High resolution plots on IBM/Epson 9 and 24 pin
  162.                     compatible printers, and HP LaserJet+.
  163.  
  164.                *    Program may be configured to send its output to
  165.                     LPT1, LPT2, LPT3 or a disk file.
  166.  
  167.                *    Bipolar transistor model maker.  Just enter your
  168.                     transistor's operating parameters and PC-ECAP will
  169.                     create a Hybrid-Pi model for your transistor.
  170.  
  171.                *    Will utilize a math coprocessor if available, but
  172.                     does NOT require one.
  173.  
  174.                *    Built-in network / multi-user support.
  175.  
  176.  
  177.  
  178.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  179.                                                             page 2
  180.  
  181.           License
  182.  
  183.           PC-ECAP is distributed as "shareware".  It is NOT public
  184.           domain or free software.
  185.  
  186.           Non-registered users of this software are given the
  187.           opportunity to evaluate the complete PC-ECAP software
  188.           package for 30 days with no obligation.  If, after the
  189.           evaluation period, you find PC-ECAP to be suitable for your
  190.           needs, you must register your copy or discontinue using
  191.           PC-ECAP.
  192.  
  193.           What we're saying is if you use this program, then you
  194.           should pay for your copy.  That way Circuit Systems will be
  195.           able to provide updates, support, and generally stay in
  196.           business.
  197.  
  198.           PC-ECAP is distributed in two forms: a registered version
  199.           and an unregistered version.  The unregistered version is a
  200.           fully-functional program that has all the features of the
  201.           registered version.  However, the unregistered version
  202.           requires the user to go through an initialization procedure
  203.           each time PC-ECAP is started.  The initialization procedure
  204.           requires the user to enter a random number before PC-ECAP
  205.           will run.  The registered version does not have this
  206.           initialization procedure.
  207.  
  208.           The REGISTERED version of PC-ECAP is LICENSED TO THE SINGLE
  209.           PERSON WHO REGISTERED THE PROGRAM AND MAY NOT BE DISTRIBUTED
  210.           IN ANY MANNER.
  211.  
  212.           All users are granted a limited license to copy the
  213.           UNREGISTERED version of PC-ECAP for the trial use of others.
  214.           This license does NOT include distribution or copying of
  215.           this software:
  216.  
  217.  
  218.                *    In conjunction with any other product or service.
  219.  
  220.                *    In general use within a company or school.
  221.  
  222.                *    For any "disk fee" other than a small (generally
  223.                     $2.00 to $5.00) copying charge.
  224.  
  225.                *    For distribution in any modified form.  The file
  226.                     containing this license information MUST be
  227.                     included along with full documentation and all
  228.                     the files that make up this software package.
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  239.                                                             page 3
  240.  
  241.           Ordering Information
  242.  
  243.           A PC-ECAP registration licenses you to use the product on a
  244.           regular basis.  Registration also entitles you to technical
  245.           support, update notices, and enables you to get future
  246.           releases of PC-ECAP at a minimal price.
  247.  
  248.           Individual registrations come in two forms.  The first,
  249.           registration only, costs $69 (plus $2.00 shipping and
  250.           handling).  Upon receipt of your paid registration form, we
  251.           will send you the latest registered version of PC-ECAP with
  252.           documentation on the disk.  We also offer PC-ECAP with a
  253.           printed manual.  For $79 (plus $4.00 shipping and handling)
  254.           we will send you the latest registered version of PC-ECAP
  255.           along with a professionally printed bound manual.  New
  256.           Jersey residents should include 6% sales tax.
  257.  
  258.           Educational institutions may apply a 35% discount to all
  259.           prices.  PLEASE include your educational institution
  260.           letterhead (with your title) when you order.
  261.  
  262.           Site licensing is also available.  Prices are based on the
  263.           estimated number of users.  Please write for more
  264.           information.
  265.  
  266.           A PC-ECAP registration form is included in the distribution
  267.           package for your convenience.  It is in the file ORDERFRM.
  268.           Please take time to fill it out and return it.  If you would
  269.           like high-quality software to continue to be made available
  270.           on a try-first basis and for a reasonable cost, it is up to
  271.           YOU to support such programs.
  272.  
  273.           Please send your registration form, suggestions and any
  274.           comments that you might have to:
  275.  
  276.                     Peter Volpa         or       For questions only,
  277.                   Circuit Systems                 no orders.  Call
  278.                   418 Church Road                  (609) 875-5433
  279.             Sicklerville, NJ  08081-1727           12 - 10 PM EST
  280.  
  281.  
  282.           Registering PC-ECAP by Credit Card
  283.  
  284.           We have established a special arrangement with the Public
  285.           (software) Library for those of you who wish to order by
  286.           credit card.  For credit card orders only, you can order
  287.           from PsL with your Master Card, Visa, AmEx or Discover card
  288.           by calling (800) 2424-PsL or (713) 524-6394.  You may also
  289.           FAX to (713) 524-6398 or CompuServe to 71355,470 or mail to
  290.           PsL, P.O. Box 35705, Houston, TX 77235-5705.  These numbers
  291.           are for ordering only.  For information about volume
  292.           discounts, site licensing, shipping of product, returns,
  293.           latest version number or other technical information, please
  294.           write to Circuit Systems or call (609) 875-5433.  All credit
  295.           card orders will be charged $4 for Shipping and Handling.
  296.  
  297.  
  298.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  299.                                                             page 4
  300.  
  301.           DISCLAIMER
  302.  
  303.           ALTHOUGH WE HAVE EXTENSIVELY TESTED PC-ECAP AND BELIEVE IT
  304.           WILL GIVE ACCURATE RESULTS IF USED CORRECTLY, WE SUPPLY THIS
  305.           PROGRAM AS IS.  CIRCUIT SYSTEMS DISCLAIMS ALL WARRANTIES,
  306.           EXPRESSED OR IMPLIED, THAT THIS PROGRAM IS FIT FOR ANY
  307.           PURPOSE.  CIRCUIT SYSTEMS ALSO ASSUMES NO LIABILITY FOR ANY
  308.           DAMAGES EITHER DIRECT OR CONSEQUENTIAL, WHICH MAY RESULT
  309.           FROM THE USE OF THIS PROGRAM.
  310.  
  311.  
  312.           Trademarks
  313.  
  314.           MS-DOS and Excel are registered trademarks of Microsoft
  315.                Corporation.
  316.  
  317.           PC-DOS, PC/AT, PC/XT, and PS/2 are registered trademarks of
  318.                IBM Corporation.
  319.  
  320.           Compaq is a registered trademark of Compaq Computer Corp.
  321.  
  322.           Hercules is a registered trademark of Hercules Computer
  323.                Technology.
  324.  
  325.           AT&T is a registered trademark of American Telephone and
  326.                Telegraph Company.
  327.  
  328.           Olivetti is a registered trademark of Ing. C. Olivetti.
  329.  
  330.           LaserJet is a registered trademark of Hewlett-Packard
  331.                Company.
  332.  
  333.           Lotus and 1-2-3 are registered trademarks of Lotus
  334.                Development Corporation.
  335.  
  336.           Quattro Pro is a registered trademark of Borland
  337.                International Corp.
  338.  
  339.           AS-EASY-AS is a trademark of TRIUS, Inc.
  340.  
  341.  
  342.           Association of Shareware Professionals
  343.  
  344.           This program is produced by a member of the Association of
  345.           Shareware Professionals (ASP).  ASP wants to make sure that
  346.           the shareware principle works for you. If you are unable to
  347.           resolve a shareware-related problem with an ASP member by
  348.           contacting the member directly, ASP may be able to help. The
  349.           ASP Ombudsman can help you resolve a dispute or problem with
  350.           an ASP member, but does not provide technical support for
  351.           members' products.  Please write to the ASP Ombudsman at 545
  352.           Grover Road, Muskegon MI 49442-9427 or send a Compuserve
  353.           message via CompuServe Mail to ASP Ombudsman 70007,3536.
  354.           The OMB may be contacted by FAX by sending to the ASP FAX
  355.           number: (616) 788-2765.  In communication with the OMB
  356.           please include a telephone number and/or FAX if available.
  357.  
  358.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  359.                                                             page 5
  360.  
  361.           System Requirements:
  362.  
  363.  
  364.                *    IBM PC, XT, AT, PS/2 or compatible.
  365.  
  366.                *    PC or MS-DOS 2.0 or later.
  367.  
  368.                *    One floppy disk drive.
  369.  
  370.                *    384K of system memory.
  371.  
  372.                *    A graphics card is recommended for best
  373.                     performance.  But if all you have is a Monochrome
  374.                     Display Adapter, PC-ECAP will even graph its
  375.                     results on that - though the resolution will be
  376.                     much lower.
  377.  
  378.                *    An IBM/Epson or HP LaserJet+ compatible printer
  379.                     if hard copy is desired.  Most printers used with
  380.                     IBM and IBM compatible computers support one of
  381.                     these standards.
  382.  
  383.  
  384.  
  385.           Attention users of MS-DOS version 3.2
  386.  
  387.  
  388.           Version 3.20 of MS-DOS contains a bug that can cause
  389.           unexpected results in programs that use floating-point math
  390.           (eg. PC-ECAP).
  391.  
  392.           You do not need to read any further unless your system has
  393.           ALL of the following characteristics:
  394.  
  395.               1.    You use MS-DOS version 3.20.
  396.               2.    You boot from a hard-disk drive.
  397.               3.    Your system has a math coprocessor (for instance,
  398.                     an 8087 chip).
  399.               4.    You run programs that use floating-point math
  400.                     (eg. PC-ECAP).
  401.  
  402.           For systems that satisfy all of the preceding conditions,
  403.           you may be able to eliminate floating-point math problems by
  404.           installing a small patch in DOS.  Please contact Microsoft
  405.           for complete details on this.
  406.  
  407.           Since this bug has been fixed in later versions of MS-DOS,
  408.           you may also want to consider upgrading your DOS to a more
  409.           recent version.
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  419.                                                             page 6
  420.  
  421.           Before You Begin
  422.  
  423.           The very first thing that you should do before going any
  424.           further is to make a backup copy of your distribution disk.
  425.           To do this just use the DOS command DISKCOPY.  This will
  426.           work whether or not you have two floppy disk drives.  It
  427.           also doesn't matter if the diskette that you want to copy to
  428.           is formatted or not.  DISKCOPY will format it for you.
  429.  
  430.           From the DOS prompt type this:
  431.  
  432.                DISKCOPY A: B:
  433.  
  434.           You will be asked to "Insert source diskette in drive A:"
  435.           This should be your original PC-ECAP disk.  Continue to
  436.           follow the directions on the screen and you will have your
  437.           backup copy.
  438.  
  439.  
  440.           Installing PC-ECAP
  441.  
  442.           We have included an "Install" program with PC-ECAP to make
  443.           installation very easy.  The Install program will not do
  444.           anything "funny".  It will not modify your AUTOEXEC.BAT or
  445.           your CONFIG.SYS files.  What it will do is create a
  446.           subdirectory on your hard drive called "\ECAP".  Then it
  447.           will copy all the needed PC-ECAP files from your floppy
  448.           drive to that subdirectory.  If you have any PC-ECAP program
  449.           files (NOT data files) prior to version 2.0, they will be
  450.           deleted.  That's all.  It is strictly for your convenience.
  451.           The default "from" drive is the drive where INSTALL.EXE is
  452.           located and the default "to" drive is drive C:.  These may
  453.           be changed to any other drives as needed.
  454.  
  455.           If you don't have a hard drive, you don't need to proceed
  456.           any further.  Skip the rest of this section and use your
  457.           backup copy as your working disk.
  458.  
  459.           To use the install program, insert your backup copy of
  460.           PC-ECAP into your floppy drive and type:
  461.  
  462.                     A:INSTALL
  463.  
  464.           Follow the directions and before you know it, you will have
  465.           PC-ECAP on your hard drive.
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  479.                                                             page 7
  480.  
  481.           Quick Start
  482.  
  483.           Although there is no substitute for reading this entire
  484.           manual, I know there are those of you who can't wait to try
  485.           a new program.  So for those who like to try-first-read-
  486.           later, this will give you a taste of what PC-ECAP can do.
  487.  
  488.           Start PC-ECAP by typing:
  489.  
  490.                ECAP
  491.  
  492.           at the DOS prompt.
  493.  
  494.           From the main menu choose the "Select input file" selection.
  495.           Select EXAMPLE1.DAT as your input file.  The circuit
  496.           described by EXAMPLE1.DAT is a simple RC low-pass filter and
  497.           is shown below.
  498.  
  499.  
  500.                         1        1.59K                 2
  501.                          ------/\/\/\/\------*---------
  502.                                              |
  503.                                              |
  504.                input                      ___|___  .1uf      output
  505.                                           _______
  506.                                              |
  507.                                              |
  508.                                           0  |
  509.                          --------------------*----------
  510.  
  511.  
  512.           Now from the main menu choose "Analyze circuit".  The
  513.           analysis will begin and you will see the results as the
  514.           program progresses.  When the analysis is complete, the
  515.           results will be plotted on your display.  First you will see
  516.           a plot of Magnitude vs. Frequency.  If you press any key
  517.           other than ESC you will get a plot of Phase vs. Frequency.
  518.           Pressing any key (other than ESC) again will show you
  519.           Magnitude again.  When you are finished, press ESC to return
  520.           to the main menu.
  521.  
  522.           As I said, this is a taste - for the details read on.
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  539.                                                             page 8
  540.  
  541.           Printer Configuration
  542.  
  543.           PC-ECAP supports four printer types.  To properly print on
  544.           your printer, you must configure the program for the printer
  545.           that you are using.  The "Change program settings" choice of
  546.           the main menu has an option to "Pick a printer to use".
  547.           Select your printer from the list given.  One of these types
  548.           should be a good match for your printer.  Refer to the
  549.           "Change program settings" section in the manual for more
  550.           details.  Be sure to save your choice.
  551.  
  552.  
  553.           Users of PC-ECAP versions prior to version 2.0
  554.  
  555.           Before version 2.0, all numbers were represented and stored
  556.           in BCD format.  With version 2.0, numbers are now stored in
  557.           IEEE binary format.  However, PC-ECAP can read any result
  558.           files stored in BCD.  When you access an old file you will
  559.           see the message "Converting file format . . .".  This
  560.           conversion is done "on the fly", meaning the converted file
  561.           is not saved.  To avoid this file conversion every time you
  562.           view an old file, simply rerun an analysis.
  563.  
  564.  
  565.           Accessing PC-ECAP Circuit Files in Other Directories
  566.  
  567.           If you are running DOS 3.0 or later you may easily work with
  568.           circuit files in other directories or on other drives.  To
  569.           do this you must have the directory that contains the
  570.           PC-ECAP program files listed in your PATH.  You should have
  571.           a line similar to this in your AUTOEXEC.BAT file:
  572.  
  573.                PATH=C:\ECAP
  574.  
  575.           Yours will not be EXACTLY like this one.  You may have
  576.           additional directories listed or the drive letter may be
  577.           different.  The important thing is that the PC-ECAP drive
  578.           and directory be part of the PATH.  You may want to refer to
  579.           your DOS manual if you need more information on this.
  580.  
  581.           Once your PATH is set up, DOS will know where to find
  582.           PC-ECAP no matter where you are.  And under DOS 3.0 or
  583.           later, PC-ECAP will know where to find any additional files
  584.           it needs to run.
  585.  
  586.  
  587.           Memory Requirements
  588.  
  589.           With version 2.1 of PC-ECAP, you can analyze circuits with
  590.           up 90 nodes.  Older versions of the program had a limit of
  591.           40 nodes.  Analysis of a 90 node circuit requires that you
  592.           have 430K bytes of free memory.  That is, memory left after
  593.           you load any memory resident programs.  If you don't have
  594.           this much memory available, don't worry.  You will just be
  595.           limited to circuits having fewer nodes.  If you have less
  596.  
  597.  
  598.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  599.                                                             page 9
  600.  
  601.           than 430K free, PC-ECAP will give you its estimate of the
  602.           largest circuit that you may analyze on program start up.
  603.           Keep in mind that this is an estimate and therefore it is
  604.           not exact.  Therefore, if you are told that you have enough
  605.           memory to analyze circuits with up 57 nodes, and you have a
  606.           circuit with 58, give it a try.  It may very well work.
  607.  
  608.           Also please note, that since node numbers start at 0, the
  609.           highest possible node number is 89.
  610.  
  611.  
  612.           Network / Multi-User Operation
  613.  
  614.           Added with version 2.1 of the program, is the ability to run
  615.           PC-ECAP on a local area network.  Your network must support
  616.           DOS file-sharing (added with DOS version 3.0).  When running
  617.           on a network, multiple users may share circuit description
  618.           and analysis result files.
  619.  
  620.           PC-ECAP imposes two main restrictions when accessing files
  621.           on a network.  If a file is being edited, no one else may
  622.           run an analysis on it.  If a circuit is being analyzed, no
  623.           one may view or output the results until the analysis is
  624.           complete.  In general, individual file access at any one
  625.           time is restricted to operations that make sense.  For
  626.           example, a circuit whose analysis is only partially complete
  627.           can't be viewed.  Of course you may do any operation you
  628.           choose if you are the only person using a particular file.
  629.  
  630.           If you attempt to access a file that is already in use,
  631.           PC-ECAP will display the message, "File is currently being
  632.           used by someone else".  You may wait until that file is
  633.           available or you may choose to work on a different file.
  634.  
  635.           You should also be aware that PC-ECAP maintains a single
  636.           configuration file.  So if you change some of the program
  637.           settings, and then write these changes to disk, the next
  638.           person on the network to run the program will get these new
  639.           settings.
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  659.                                                             page 10
  660.  
  661.           Getting Started
  662.  
  663.           PC-ECAP is started by typing the following command at the
  664.           DOS prompt:
  665.  
  666.                     ECAP   [ options ]
  667.  
  668.           The optional command line switches are used to manually set
  669.           the video mode.  Since PC-ECAP is usually able to do this
  670.           automatically, these options should not be needed by 99% of
  671.           computers.  They are covered separately in Appendix A.  If
  672.           you have trouble seeing the main menu after the opening
  673.           screen, please refer to this appendix.
  674.  
  675.           When PC-ECAP is started, you will first see the main menu.
  676.           The program has been designed to be very easy to use, and
  677.           the menu system plays an important part in reaching this
  678.           goal.  All menu choices may be selected in either one of two
  679.           ways.  First, a selection may be made by typing the first
  680.           letter of an item.  These are highlighted so they stand out.
  681.           Selection may also be made by using the cursor keys (up
  682.           arrow, down arrow, home and end) to highlight a choice.
  683.           When "ENTER" is pressed the selection is made.  The program
  684.           will do its best to logically anticipate your next choice.
  685.           For example, after editing a circuit description and
  686.           returning to the main menu, the choice "Analyze circuit"
  687.           will be highlighted - assuming that after editing, you most
  688.           likely will want to analyze your circuit.
  689.  
  690.           MAIN MENU Descriptions
  691.  
  692.           Select input file
  693.  
  694.                This selection will display an alphabetically sorted
  695.                list of all the circuit description files in your
  696.                current directory.  Use the cursor keys to select a
  697.                file to use.  If you see "more . . ." displayed at the
  698.                beginning or end of the list, this means that there are
  699.                additional files on another page.  You can use the PgUp
  700.                or PgDn keys in addition to the up arrow, down arrow,
  701.                left arrow, right arrow, home and end keys to view
  702.                them.  Once your choice is highlighted just press ENTER
  703.                to select it.
  704.  
  705.                PC-ECAP also has a "Speed Search" feature.  To use it,
  706.                type the first letter of the file that you want to
  707.                select, followed by enough letters to uniquely specify
  708.                it.  In most cases all it takes is 2 or 3 letters.
  709.                Your desired file will be highlighted.  Press ENTER to
  710.                select it.
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  719.                                                             page 11
  720.  
  721.                If you want to select a file that is not listed (for
  722.                example - a new circuit description that you want to
  723.                input) press F2.  A window will appear asking for the
  724.                filename.  Type the filename and press ENTER.  All
  725.                filenames should be eight characters or less in length.
  726.                If you type in more than eight, only the first eight
  727.                will be accepted.  A file extension is optional, if it
  728.                is omitted the extension ".DAT" will be appended to the
  729.                filename.  If a filename has an extension other than
  730.                ".DAT", the ".DAT" extension will be substituted in its
  731.                place.
  732.  
  733.                You can delete a highlighted file by pressing F3.  When
  734.                you do so, a window will appear asking, "Delete File?".
  735.                Answer "Yes" to delete.  "No" or ESC will abort the
  736.                operation.
  737.  
  738.           If at any time you want to abort the current operation,
  739.           pressing the ESC key will return you one level up in the
  740.           program.
  741.  
  742.           Edit input file
  743.  
  744.                This starts the built-in full screen editor.  The file
  745.                that you want to edit must be selected first.  If no
  746.                file is selected, you will be sent to the "Select input
  747.                file" screen and then returned to the editor.
  748.  
  749.                The editor is very straight forward to use, just type
  750.                each line followed by the ENTER key.  When in the
  751.                editor these keys have special meaning:
  752.  
  753.                Right Arrow  - move one character to the right.
  754.  
  755.                Left Arrow   - move one character to the left.
  756.  
  757.                Home         - move to the beginning of the line.
  758.  
  759.                End          - move to the end of the line.
  760.  
  761.                Up Arrow     - move one line up.
  762.  
  763.                Down Arrow   - move one line down.
  764.  
  765.                Ctrl Home    - move to the beginning of the file.
  766.  
  767.                Ctrl End     - move to the end of the file.
  768.  
  769.                PgDn         - move 20 lines down.
  770.  
  771.                PgUp         - move 20 lines up.
  772.  
  773.                Del          - will delete the character directly above
  774.                               the cursor.
  775.  
  776.  
  777.  
  778.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  779.                                                             page 12
  780.  
  781.                Backspace    - will delete the character to the left of
  782.                               the cursor.
  783.  
  784.                Ins          - will toggle between the insert and
  785.                               replace modes.  In the insert mode the
  786.                               cursor will change to a block cursor and
  787.                               any characters typed will be inserted
  788.                               between any characters already on the
  789.                               screen.  When in replace mode, any
  790.                               characters typed will type over those on
  791.                               the screen.
  792.  
  793.                In addition to these special keys, five function keys
  794.                have special meaning.  Press them alone or in
  795.                combination with the "Alt" key to access the following
  796.                features.
  797.  
  798.                F1 Help
  799.  
  800.                     One of the features that has been added to make
  801.                     PC-ECAP easy to use is the on-line help.  When F1
  802.                     is pressed a window will appear containing useful
  803.                     information on items such as circuit element
  804.                     description formats, analysis range and sweep
  805.                     type, value types and examples.  You can move
  806.                     through these with the PgUp and PgDn keys.  When
  807.                     you are ready to continue editing, pressing F1
  808.                     again or the ESC key will close the window and let
  809.                     you edit.
  810.  
  811.                F2 Model Maker
  812.  
  813.                     The model maker allows you to more accurately
  814.                     model bipolar transistors.  The transistor model
  815.                     used is the Hybrid-Pi model.  Despite its
  816.                     simplicity, this model gives quite good results
  817.                     for analysis up to about one half of the
  818.                     transistor's cutoff frequency (Ft).
  819.  
  820.                     When the model maker is activated, a window will
  821.                     appear.  You will first be asked for the node
  822.                     numbers of the transistor.  Enter these pressing
  823.                     the ENTER key after each entry for base, emitter,
  824.                     and collector.  You next have to answer four
  825.                     questions.  You will be asked (and need to know)
  826.                     the following:
  827.                     
  828.                     Transistor DC collector current - hopefully you
  829.                     will know this.  If not, try your best guess.
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  839.                                                             page 13
  840.  
  841.                     Transistor current gain or Beta - since the gain
  842.                     of bipolar transistors varies with collector
  843.                     current, the number that you enter here should be
  844.                     at the collector current specified above for best
  845.                     results.  Usually it is available in the data
  846.                     sheet for the transistor.
  847.  
  848.                     Transistor Gain-Bandwidth product (Ft) - this also
  849.                     should be at the collector current entered above
  850.                     (check the data sheet).
  851.  
  852.                     Transistor common base output capacitance - this
  853.                     is just the base to collector capacitance.
  854.                     Usually it is listed as Cobo in the transistor
  855.                     data.  (Which means output capacitance common base
  856.                     with the emitter open).
  857.  
  858.                     After all the information is entered, the window
  859.                     will close and components for the model will be
  860.                     inserted into your circuit description after the
  861.                     current cursor line.
  862.  
  863.                F3 Insert Line
  864.  
  865.                     Pressing F3 will insert a blank line above the
  866.                     current cursor line and move the cursor line and
  867.                     all lines below it down.
  868.  
  869.                F4 Delete Line
  870.  
  871.                     Pressing F4 will delete the current cursor line
  872.                     and move all lines below it up.  The deleted line
  873.                     will be placed in the cut buffer and can be pasted
  874.                     if desired.
  875.  
  876.                F5 Find Component
  877.  
  878.                     The Find Component feature is useful to find
  879.                     circuit elements in your circuit description file.
  880.                     Just press F5, enter the element to be found, and
  881.                     the line containing the element will be
  882.                     highlighted with the cursor positioned there.  If
  883.                     the element does not exist, a "Component not
  884.                     found" message will appear.
  885.  
  886.                Alt-F1 Net List
  887.  
  888.                     This feature can make it easier to track down
  889.                     errors in your circuit description.  The Net List
  890.                     is a node by node list of all the circuit elements
  891.                     that make up your description.  By comparing the
  892.                     connections in this list to your circuit's
  893.                     schematic, you can verify that your circuit is
  894.                     described properly.
  895.  
  896.  
  897.  
  898.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  899.                                                             page 14
  900.  
  901.                     When the Net List is selected, you will be asked
  902.                     whether you want your list sent to the screen or
  903.                     to a defined printer.  If you select screen, a
  904.                     window will appear listing your circuit's nodes
  905.                     and their attached components.  Use the cursor
  906.                     keys to move through this list.  To close this
  907.                     window and return to editing, just press ESC.
  908.  
  909.                Alt-F2 Rename File
  910.  
  911.                     You may change the name of a circuit description
  912.                     file by selecting "Rename File".  A window will
  913.                     appear asking for your new file name.  Type the
  914.                     new name and press ENTER.  ESC will close the
  915.                     window and leave the existing file name unchanged.
  916.                     When you rename and save a file, the old named
  917.                     file will still exist.  This is useful if you have
  918.                     a circuit that is very similar to an existing
  919.                     circuit description.  You can modify the existing
  920.                     description and save it under a new name. If you
  921.                     want to delete the old named file, you can do so
  922.                     from the "Select input file" menu.
  923.  
  924.                Alt-F3 Paste Line
  925.  
  926.                     This option will insert a line saved in the cut
  927.                     buffer above the current cursor line and move the
  928.                     cursor line and all lines below it down.
  929.  
  930.                Alt-F4 Copy Line
  931.  
  932.                     Will copy the current line into the cut buffer.
  933.                     Used with the Paste Line feature above.
  934.  
  935.                Alt-F5 Find Next
  936.  
  937.                     This will find the next component meeting your
  938.                     search criteria as specified under "Find
  939.                     Component".  If you have asked for a unique
  940.                     component, you won't be able to find a "next".
  941.                     This option is most useful when you want to find
  942.                     all occurrences of a part, such as all capacitors
  943.                     or all resistors, etc.
  944.  
  945.                Leaving The Editor
  946.  
  947.                When you are finished with your editing, press the ESC
  948.                key.  If you have made any changes to the file, a
  949.                window will pop up and ask, "Save Changes?".
  950.                Answer "Y" to save all changes, or "N" to ignore all
  951.                changes.  An ESC will cancel the exit, if you have
  952.                changed your mind.
  953.  
  954.  
  955.  
  956.  
  957.  
  958.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  959.                                                             page 15
  960.  
  961.           Analyze circuit
  962.  
  963.                This choice will begin the actual analysis of the
  964.                circuit selected.  If a file containing the circuit
  965.                description has not been selected, you will first be
  966.                sent to the "Select input file" screen and then
  967.                returned to begin analysis.
  968.  
  969.                PC-ECAP will subject your circuit to a 1 volt signal at
  970.                the selected input node and then calculate the
  971.                magnitude and phase response at the selected output
  972.                node.  The input signal is from an ideal AC voltage
  973.                source and therefore it can drive any impedance.  Any
  974.                output node selected will not be loaded by PC-ECAP.
  975.  
  976.                This analysis is repeated for each of the frequencies
  977.                in the specified input range.  The number of
  978.                frequencies within the input range that PC-ECAP will
  979.                subject your circuit to, is controlled by the "Change
  980.                the number of sample points" option under the "Change
  981.                program settings" choice of the main menu.  Its use
  982.                will be fully explained under that heading.  As PC-ECAP
  983.                progresses, it will display magnitude and phase results
  984.                on the screen.  The results of the analysis are also
  985.                saved in a disk file.  The file will have the same name
  986.                as the circuit description file but will have a file
  987.                extension of ".OUT".
  988.  
  989.                When the analysis is finished, the results will be
  990.                plotted on your display.  For all display adapters
  991.                other than VGA, PC-ECAP will use the highest resolution
  992.                that your display adapter supports.  VGA adapters will
  993.                be run in EGA mode (640 x 350).  The resolution used
  994.                will be as follows:
  995.  
  996.                          CGA          640 x 200
  997.  
  998.                          EGA          640 x 350    enhanced display
  999.  
  1000.                                       640 x 350    monochrome display
  1001.  
  1002.                                       640 x 200    color display
  1003.  
  1004.                          Hercules     720 x 348
  1005.  
  1006.                          VGA          640 x 350    monochrome or color
  1007.  
  1008.                          MCGA         640 x 480    monochrome or color
  1009.  
  1010.                          AT&T         640 x 400   
  1011.  
  1012.                          MDA          80 x 25
  1013.  
  1014.                Pressing any key other than ESC will cycle through the
  1015.                various plots.  ESC will return you to the main menu.
  1016.  
  1017.  
  1018.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1019.                                                             page 16
  1020.  
  1021.           View output data
  1022.  
  1023.                This selection allows you to view the results of
  1024.                circuits that have been previously analyzed.  The
  1025.                results will be listed in tabular form on the display.
  1026.                You can use the cursor keys to move through them.  The
  1027.                cursor keys that are active under this selection are
  1028.                the following:
  1029.  
  1030.                     Up Arrow     - scroll up one line.
  1031.  
  1032.                     Down Arrow   - scroll down one line.
  1033.  
  1034.                     PgUp         - scroll up 19 lines.
  1035.  
  1036.                     PgDn         - scroll down 19 lines.
  1037.  
  1038.                     Home         - display the first 19 lines.
  1039.  
  1040.                     End          - display the last 19 lines.
  1041.  
  1042.                The analysis results can also be plotted on the display
  1043.                by pressing the F1 function key.  Plotting works the
  1044.                same way as described in the "Analyze circuit" section.
  1045.                Pressing any key except ESC will cycle through the
  1046.                various plots.  Pressing ESC will return you to the
  1047.                tabular listing of the data. Press ESC again to return
  1048.                to the main menu.
  1049.  
  1050.           Output to printer
  1051.  
  1052.                PC-ECAP will normally send the results of an
  1053.                analysis to a printer selected under the "Change
  1054.                program settings" option.  If desired, the results can
  1055.                instead be sent to a disk file for printing later.  The
  1056.                file will have a filename that is the same as the file
  1057.                selected, but with a file extension of ".PRN".
  1058.  
  1059.                Partial output listing
  1060.  
  1061.                This choice will output a listing of the circuit
  1062.                description at the time of analysis and high resolution
  1063.                plots of the results.
  1064.  
  1065.                Full output listing
  1066.  
  1067.                Choosing this option will output a listing of
  1068.                the circuit description at the time of analysis, a
  1069.                tabular listing of the analysis results, and high
  1070.                resolution plots of these results.
  1071.  
  1072.                It is necessary to have a printer that is IBM/Epson
  1073.                compatible or HP LaserJet compatible if printed output
  1074.                is desired.  Most printers used with IBM compatible
  1075.                computers support one of these standards, although in a
  1076.  
  1077.  
  1078.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1079.                                                             page 17
  1080.  
  1081.                few cases it may be necessary to select the proper mode
  1082.                by means of a switch on the printer.  Be sure that you
  1083.                have configured PC-ECAP for your particular printer
  1084.                type.  This is done under the "Change program settings"
  1085.                option of the main menu.  (see next section for
  1086.                details).
  1087.  
  1088.           Change program settings
  1089.  
  1090.                PC-ECAP allows you to configure certain aspects of its
  1091.                operation.  The configuration information is saved in a
  1092.                disk file that is read every time the program is run.
  1093.                The name of this file is "PC-ECAP.CFG".  If this file
  1094.                is not present it will be created.  This should only be
  1095.                necessary the very first time you run PC-ECAP.  The
  1096.                file will have as defaults: 70 sample points for
  1097.                analysis, LPT1 selected as the output destination, and
  1098.                an IBM/Epson 9 pin printer selected as your printer
  1099.                type.  Any of these may be changed by means of this
  1100.                menu.
  1101.  
  1102.                Change number of sample points
  1103.  
  1104.                When an analysis is performed, the desired frequency
  1105.                range is divided into a number of sample points.  The
  1106.                number of points may be set to 35, 70, 140, 280 or 560.
  1107.                It should be noted that you must obviously make a
  1108.                choice between the high analysis resolution provided by
  1109.                selecting 560 sample points and the faster
  1110.                computational speed offered by selecting 35 points.
  1111.                The number of points you select really depends on the
  1112.                circuits that you analyze.  I have found that for most
  1113.                circuits 70 sample points works quite well.  You should
  1114.                increase the number of points if you have a circuit
  1115.                that has abrupt changes in magnitude or phase.  You may
  1116.                also want to increase the number of points if you
  1117.                analyze circuits over a very wide frequency range.
  1118.  
  1119.                Select output destination
  1120.  
  1121.                The output from PC-ECAP can be sent to a printer
  1122.                designated as LPT1, LPT2, or LPT3.  Alternately output
  1123.                may be sent to a disk file for later printing.  For
  1124.                printed output, select the port that you have your
  1125.                printer attached to (normally this will be LPT1).
  1126.  
  1127.                Pick a printer to use
  1128.  
  1129.                PC-ECAP supports four different printer types.  One of
  1130.                these types should be a good match for just about any
  1131.                printer.  The supported printer types are: IBM/Epson 9
  1132.                pin, HP LaserJet, Epson 24 pin and IBM 24 pin.  Just
  1133.                choose the type that matches your printer.  Some
  1134.                printers can emulate more than one type, be sure that
  1135.                your printer and PC-ECAP are both configured for the
  1136.  
  1137.  
  1138.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1139.                                                             page 18
  1140.  
  1141.                same printer type.  After you make your selection, it
  1142.                is important that you "Write changes to disk" (see next
  1143.                choice).  If you don't save your printer configuration,
  1144.                PC-ECAP will not be setup properly the next time you
  1145.                use it.  This only needs to be done once.
  1146.  
  1147.                Some printers allow you to manually set a particular
  1148.                font, pitch or mode.  DO NOT DO THIS.  On most printers
  1149.                this will override any printer commands that your
  1150.                computer may send, and PC-ECAP's printed output will
  1151.                not print properly.  If you have a problem with printed
  1152.                output, insure that your printer is in "Pgm" mode.
  1153.                When in "program" mode, your printer will follow your
  1154.                program's commands, and your printed output will appear
  1155.                as intended.
  1156.  
  1157.                Write changes to disk
  1158.  
  1159.                This selection will write any changes in configuration
  1160.                to the "PC-ECAP.CFG" file.  Select this option to make
  1161.                the changes you have made carry over to the next
  1162.                session of PC-ECAP.  If the changes are not written to
  1163.                disk, they will be in effect only for your current
  1164.                session.
  1165.  
  1166.                Return to main menu
  1167.  
  1168.                Returns you to the main menu.
  1169.  
  1170.           Quit this program
  1171.  
  1172.                Ends your current session with PC-ECAP and returns you
  1173.                to DOS.
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1199.                                                             page 19
  1200.  
  1201.           Analyzing a Circuit Using PC-ECAP
  1202.  
  1203.           The first step in analyzing any circuit is to draw the
  1204.           circuit on a piece of paper.  Next number all the nodes in
  1205.           the circuit.  A node is any connection of 2 or more
  1206.           components.  Node numbers must be non-negative integers.
  1207.           There are two rules that you must follow when numbering
  1208.           nodes, first ground or the common connection between input
  1209.           and output must always be designated as node number 0.
  1210.           Secondly, although the nodes may be numbered in any order,
  1211.           none may be skipped.
  1212.  
  1213.           PC-ECAP has a limit of 90 nodes and can handle up to 1000
  1214.           components.  Some components count as more than one circuit
  1215.           element.  You can use the following as a guide;
  1216.  
  1217.  
  1218.                Resistors, Capacitors, Inductors, Fet's and
  1219.                Transconductance amplifiers each count as one
  1220.                circuit element.
  1221.  
  1222.                OpAmps and Bipolar transistors count as two.
  1223.  
  1224.                Transformers count as four.
  1225.  
  1226.  
  1227.           So it is possible to have fewer than 1000 components in your
  1228.           circuit and still exceed this limit.  Although, in practice,
  1229.           it is highly unlikely that you will reach this limit.
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1259.                                                             page 20
  1260.  
  1261.           Input Format
  1262.  
  1263.           The input format of a PC-ECAP circuit description is easy to
  1264.           learn and remember.  Fields describing a component are of
  1265.           the free format type and are simply separated by spaces.
  1266.           Circuit element names should begin with a letter designating
  1267.           the type of circuit element and may optionally be followed
  1268.           by up to 14 additional alphanumeric characters.
  1269.  
  1270.           Values used to describe a circuit element may be integer
  1271.           (100), floating point (1000.45), either an integer or
  1272.           floating point number followed by an integer exponent
  1273.           (1E-3, 4.7E6) or either an integer or floating point number
  1274.           followed by one of the following scale factors:
  1275.  
  1276.                P=1E-12   N=1E-9    U=1E-6    M=1E-3    K=1E3
  1277.  
  1278.                          MEG=1E6        G=1E9
  1279.  
  1280.           Letters immediately following a number that are not scale
  1281.           factors are ignored, and letters immediately following a
  1282.           scale factor are ignored.  So 10, 10ohms and 10Hz all
  1283.           represent the same number, and u, uf and umhos all represent
  1284.           the same scale factor.  Note that 1000, 1000.0, 1000Hz, 1E3,
  1285.           1.0E3, 1K and 1KHz all represent the same number.
  1286.  
  1287.           In addition, some values may also be expressed in "European"
  1288.           format.  This format has one or more digits followed by a
  1289.           scale factor that also takes the place of a decimal point,
  1290.           followed by one or more digits.  For example, 1500 would be
  1291.           expressed as 1K5.  When values are in this format, these
  1292.           scale factors are recognized: R, K, M.  `R' is equal to a
  1293.           factor of 1.  `K' is equal to 1000, as above.  `M' is equal
  1294.           to a factor of 1E6.  Please note the difference between this
  1295.           use of `M' and `M' in the non-European format above.  When
  1296.           `M' is placed at the end of a number it multiplies the
  1297.           number by 1E-3.  But when `M' is placed between two numbers,
  1298.           the multiplication factor is 1E6.  Be careful!
  1299.  
  1300.  
  1301.                Some examples:
  1302.  
  1303.                6R8 is 6.8,    5K1 is 5100,    4M7 is 4.7 million
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1319.                                                             page 21
  1320.  
  1321.           Circuit Element Description
  1322.  
  1323.           Resistors
  1324.  
  1325.                RXXXX N1 N2 Value
  1326.  
  1327.           N1 and N2 are the two element nodes.  Value is the
  1328.           resistance in ohms.
  1329.  
  1330.           Examples:
  1331.  
  1332.                R1 1 2 100
  1333.  
  1334.                RLOAD 12 15 1K
  1335.  
  1336.           Capacitors
  1337.  
  1338.                CXXXX N1 N2 Value
  1339.  
  1340.           N1 and N2 are the two element nodes.  Value is the
  1341.           capacitance in farads.
  1342.  
  1343.           Examples:
  1344.  
  1345.                C4 8 9 1uf
  1346.  
  1347.                COSC 2 3 22pf
  1348.  
  1349.           Inductors
  1350.  
  1351.                LXXXX N1 N2 Value
  1352.  
  1353.           N1 and N2 are the two element nodes.  Value is the inductor
  1354.           value in henries.
  1355.  
  1356.           Examples:
  1357.  
  1358.                L3 7 0 10mh
  1359.  
  1360.                LTANK 4 5 56uh
  1361.  
  1362.           Transformers
  1363.  
  1364.                TXXXX +Pri -Pri +Sec -Sec  N
  1365.  
  1366.           +Pri and -Pri are the nodes for the transformer primary.
  1367.           +Sec and -Sec are the nodes for the transformer secondary.
  1368.           N is the turns ratio between primary and secondary (Np/Ns).
  1369.           The + and - signs denote the phasing of the windings,
  1370.           e.g. the +Pri node will be in phase with the +Sec node.
  1371.  
  1372.           Example:
  1373.  
  1374.                T1 3 0 4 5 10turns
  1375.  
  1376.  
  1377.  
  1378.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1379.                                                             page 22
  1380.  
  1381.           Bipolar Transistors (both NPN and PNP)
  1382.  
  1383.                BXXXX NB NE NC Beta Rbe
  1384.  
  1385.           NB, NE, and NC are the base, emitter and collector nodes
  1386.           respectively.  Beta is the Transistor current gain.  Rbe is
  1387.           the equivalent base-emitter resistance (in ohms) used in the
  1388.           Hybrid-Pi transistor model.
  1389.  
  1390.           Example:
  1391.  
  1392.                B1 9 0 11 100 1250
  1393.  
  1394.           Field Effect Transistors  (both JFETs and MOSFETs)
  1395.  
  1396.                FXXXX NG NS ND Gm
  1397.  
  1398.           NG, NS, and ND are the gate, source, and drain nodes
  1399.           respectively.  Gm is the FET transconductance in mhos
  1400.           (Amps/Volt).
  1401.  
  1402.           Example:
  1403.  
  1404.                F2 3 4 0 2000umhos
  1405.  
  1406.           Operational Amplifiers
  1407.  
  1408.                OXXXX N+ N- NO Gain Rout
  1409.  
  1410.           N+, N-, and NO are the non-inverting input, inverting input
  1411.           and output nodes respectively.  The opamp output is
  1412.           referenced to ground (node 0).  Gain is the open loop gain
  1413.           of the opamp, usually somewhere between 10,000 and 1 million
  1414.           times.  Rout is the open loop output resistance for the
  1415.           opamp.  Real opamps usually have an output resistance
  1416.           between 10 and 150 ohms.
  1417.  
  1418.           Example:
  1419.  
  1420.                O1 1 2 2 100k 75
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1439.                                                             page 23
  1440.  
  1441.           Transconductance Amplifiers
  1442.  
  1443.                GXXXX N+ N- NO+ NO- Gm
  1444.  
  1445.           N+ and N- are the non-inverting input and inverting input.
  1446.           NO+ and NO- are the non-inverting output and the inverting
  1447.           output.  Please note that these outputs are floating.  In
  1448.           other words the actual output is not from either output to
  1449.           ground, but is developed between the outputs.  Either output
  1450.           (but not both) may be tied to ground if a single ended
  1451.           output is desired.  Gm is the amplifier transconductance in
  1452.           mhos (Amps/Volt).  The transconductance amplifier may be
  1453.           used in its own right or it may be used to perform a voltage
  1454.           to current conversion, sometimes useful when simulating
  1455.           other devices.
  1456.  
  1457.           Example:
  1458.  
  1459.                GXXXX 1 2 3 0 100mmhos
  1460.  
  1461.  
  1462.           A Few Words About Transconductance Amplifiers
  1463.  
  1464.           Although most people are familiar with bipolar transistors
  1465.           and operational amplifiers, not as many know about
  1466.           transconductance amplifiers.  These amplifiers are another
  1467.           variation of a dependent source.  The common bipolar
  1468.           transistor is a current controlled current source; A small
  1469.           current entering the base controls a much larger current
  1470.           flowing between the collector and emitter.  The opamp is a
  1471.           voltage controlled voltage source; A very small input
  1472.           voltage effectively controls a much larger voltage swing at
  1473.           the output.  With this said, a transconductance amplifier
  1474.           can be described as a voltage controlled current source; A
  1475.           small voltage difference between the two inputs controls a
  1476.           current flowing either into or out of the output.  In our
  1477.           case this current will flow from one output to the other.
  1478.  
  1479.  
  1480.           Valid Circuit Elements
  1481.  
  1482.           All of the lines that make up a PC-ECAP circuit description
  1483.           file must either begin with one of the previously mentioned
  1484.           elements, be blank, or be a comment.  To add a comment to
  1485.           your circuit description, begin the line with a semicolon.
  1486.           An example comment might be:
  1487.  
  1488.                ; this begins the second filter section
  1489.  
  1490.           If a line begins with something other than a circuit
  1491.           element, a blank line, or a comment, PC-ECAP will abort the
  1492.           analysis and flag the bad line.
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1499.                                                             page 24
  1500.  
  1501.           Specifying Analysis Parameters
  1502.  
  1503.  
  1504.           Once your circuit has been described you need to determine
  1505.           how it will be analyzed.  PC-ECAP will subject your circuit
  1506.           to a 1 volt signal at the selected input node and then
  1507.           calculate the response at the selected output node.  The
  1508.           frequency of the input signal can be swept over the
  1509.           specified range in either a linear or logarithmic fashion.
  1510.  
  1511.           The PLOT statement is used to tell PC-ECAP which node of
  1512.           your circuit will be used for the input, which node will be
  1513.           used for the output, the frequency range that you want to
  1514.           analyze, the sweep mode (linear or logarithmic) and the
  1515.           analysis type.  PLOT should be the last statement in your
  1516.           description.
  1517.  
  1518.           This is the format for the PLOT statement:
  1519.  
  1520.  
  1521.             PLOT NI NO Start-freq. Stop-freq. Plot-mode Plot-type
  1522.  
  1523.  
  1524.           PLOT may optionally be abbreviated to P.  NI is the
  1525.           circuit's input node.  NO is the circuit's output node.
  1526.           Start-frequency is simply the beginning frequency for the
  1527.           analysis.  Stop-frequency is the upper frequency limit of
  1528.           the analysis.  Plot-mode specifies whether a linear or a
  1529.           logarithmic frequency sweep is to be performed.  This may be
  1530.           abbreviated to 3 letters (LIN or LOG) if desired.
  1531.  
  1532.           Plot-type may optionally be used to specify the analysis
  1533.           type.  If it is not specified, magnitude and phase will be
  1534.           calculated.  To calculate group delay, impedance, VSWR or
  1535.           return loss, you must provide this parameter.
  1536.  
  1537.  
  1538.                for:                   Plot-type is:
  1539.  
  1540.           group delay                   Delay
  1541.  
  1542.           impedance in magnitude        ZPolar
  1543.            and phase format
  1544.  
  1545.           impedance in Real and         ZRectangular
  1546.            Imaginary format
  1547.  
  1548.             VSWR                        SWR    <reference impedance>
  1549.           (voltage standing
  1550.                wave ratio)
  1551.  
  1552.           return loss                   RLoss  <reference impedance>
  1553.  
  1554.  
  1555.           Plot-type may be abbreviated to the letters that are
  1556.           capitalized.
  1557.  
  1558.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1559.                                                             page 25
  1560.  
  1561.           Impedance, VSWR (voltage standing wave ratio) and return
  1562.           loss calculations will be done at the input node specified.
  1563.           This doesn't mean that you can't calculate an output
  1564.           impedance instead.  If your circuit's output is node 8, and
  1565.           you are interested in its output impedance, just specify
  1566.           node 8 as the input node for the PLOT statement.  You can
  1567.           look at it this way, to determine impedance, PC-ECAP must
  1568.           apply an excitation signal to your circuit.  This signal is
  1569.           always applied to the node listed as the input node for your
  1570.           circuit.
  1571.  
  1572.           For VSWR and return loss, a reference impedance must also be
  1573.           specified.  This is the impedance that your circuit is
  1574.           supposed to be matched to.  This is usually 50 or 75 ohms,
  1575.           but it may be any positive value.
  1576.  
  1577.           As an example of what we have been discussing, we might have
  1578.           a circuit where node 2 is the input and node 5 is the
  1579.           output.  The lowest frequency that we want to look at is 100
  1580.           Hz and the highest frequency is 10 KHz.  We are only
  1581.           interested in magnitude and phase vs frequency.  And we want
  1582.           to sweep this range logarithmically.
  1583.  
  1584.           This PLOT statement will specify all this:
  1585.  
  1586.                PLOT 2 5 100HZ 10KHZ LOG
  1587.  
  1588.           For another example, we have a circuit with node 1 as its
  1589.           input.  We are interested in determining the input VSWR vs
  1590.           frequency.  The input is supposed to match 50 ohms, and
  1591.           operate from 7.0 MHz to 7.3 MHz.
  1592.  
  1593.           This is the PLOT statement that will do the job:
  1594.  
  1595.                PLOT 1 5 7MEG 7.3MEG LIN SWR 50
  1596.  
  1597.           Please note that for impedance, VSWR or return loss
  1598.           calculations, the output node specified in the PLOT
  1599.           statement is unimportant.  It is ignored.
  1600.  
  1601.  
  1602.           What is Group Delay anyway?
  1603.  
  1604.           If a circuit is designed to pass all important frequencies
  1605.           with equal amplitude and have absolutely linear amplitude
  1606.           characteristics, a waveform may still pass through badly
  1607.           distorted.  The problem is delay distortion; if all
  1608.           frequency components do not pass through a circuit with the
  1609.           same time delay, the output waveform will not look the same
  1610.           as the input.  Group delay is the rate of phase shift vs
  1611.           change of frequency, and is defined as:
  1612.  
  1613.                                    1    d0
  1614.                     group delay = --- x ---  seconds
  1615.                                   360   df
  1616.  
  1617.  
  1618.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1619.                                                             page 26
  1620.  
  1621.           An Example Please!
  1622.  
  1623.           It's about time now to look at an example circuit.  We will
  1624.           analyze a simple RC low-pass filter.  The circuit is shown
  1625.           below.
  1626.  
  1627.  
  1628.                         1        1.59K                 2
  1629.                          ------/\/\/\/\------*---------
  1630.                                              |
  1631.                                              |
  1632.                input                      ___|___  .1uf      output
  1633.                                           _______
  1634.                                              |
  1635.                                              |
  1636.                                           0  |
  1637.                          --------------------*----------
  1638.  
  1639.  
  1640.           This circuit has 3 nodes and they have been numbered.
  1641.           Notice that we have numbered the common node between the
  1642.           input and the output as node 0.  This is required.
  1643.  
  1644.           The next thing to do is to describe the circuit to PC-ECAP
  1645.           so that it will know just what is connected to what and the
  1646.           component values associated with each part.  The next two
  1647.           lines will completely describe this circuit:
  1648.  
  1649.                R 1 2 1.59K
  1650.                C 2 0 .1UF
  1651.  
  1652.           The first line says to PC-ECAP that a resistor is connected
  1653.           between nodes 1 and 2 and has a value of 1.59K (notice that
  1654.           you don't have to enter 1590 for the resistor value, PC-ECAP
  1655.           understands what "K" means).
  1656.  
  1657.           The second line reads "a capacitor is connected between
  1658.           nodes 2 and 0 and has a value of .1uf".  Now all we have to
  1659.           tell PC-ECAP is where we want to put the input signal, where
  1660.           we want to look for the output and what frequency range we
  1661.           want to cover.  This is done with the PLOT statement.  For
  1662.           this circuit we want node 1 to be our input and node 2 to be
  1663.           our output.  Also we want to sweep the input frequency from
  1664.           100Hz to 10KHz in a logarithmic fashion.  The next line will
  1665.           tell PC-ECAP all this.
  1666.  
  1667.                PLOT 1 2 100 10KHZ LOG
  1668.  
  1669.           On your distribution disk (or in the archive file if you got
  1670.           this program from a BBS) you will find EXAMPLE1.DAT.  This
  1671.           file contains the circuit description for this circuit.
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1679.                                                             page 27
  1680.  
  1681.           If you haven't started PC-ECAP yet do so now.  From the
  1682.           main menu choose the "Select input file" selection.  Select
  1683.           EXAMPLE1.DAT as your input file.  Next from the main menu
  1684.           choose "Edit input file".  The editor will load EXAMPLE1.DAT
  1685.           and you will see the following:
  1686.  
  1687.  
  1688.           ; Example1.dat - RC low-pass filter with a cutoff frequency
  1689.           ;                 of 1 KHz.
  1690.  
  1691.           R 1 2 1.59k
  1692.           C 2 0 .1UF
  1693.           PLOT 1 2 100 10KHZ LOG
  1694.  
  1695.           This circuit description tells PC-ECAP all that it needs to
  1696.           know about this circuit and how you want to analyze it.
  1697.  
  1698.           Press ESC to get back to the main menu and now choose
  1699.           "Analyze circuit".  The analysis will begin and you will see
  1700.           the results as the program progresses.  When the analysis is
  1701.           complete, the results will be plotted on your display.
  1702.           First you will see a plot of Magnitude vs. Frequency.  If
  1703.           you press any key other than ESC you will get a plot of
  1704.           Phase vs. Frequency.  Pressing any key (other than ESC)
  1705.           again will show you Magnitude again.  If you have an EGA
  1706.           with 256K of memory or a Hercules or VGA card, both pages of
  1707.           graphics memory will be used and the change from Phase to
  1708.           Magnitude and back will be instantaneous.
  1709.  
  1710.  
  1711.           Another Example
  1712.  
  1713.           We have included a few other sample circuits with PC-ECAP.
  1714.           EXAMPLE2.DAT is a 75 ohm high-pass filter that can be used
  1715.           to reject television interference.  EXAMPLE3.DAT is a
  1716.           band-pass filter for use as a modem receive filter.  This
  1717.           example shows how group delay is calculated.  EXAMPLE5.DAT
  1718.           is an LC low-pass filer for which input impedance is
  1719.           calculated.  EXAMPLE6.DAT is an example of the calculation
  1720.           of return loss.  EXAMPLE7.DAT is an LC band-pass filter for
  1721.           which VSWR is calculated.  If you'd like, take a look at
  1722.           them and run an analysis.  You may want to draw them on a
  1723.           piece of paper first to really see what you are doing.
  1724.  
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1739.                                                             page 28
  1740.  
  1741.           For our last example we're going to take a look at
  1742.           EXAMPLE4.DAT.  This circuit is a single stage transistor
  1743.           amplifier made with a 2N3904 NPN transistor.  We will
  1744.           demonstrate the use of the "Model Maker" that is part of the
  1745.           full screen editor.  Here's the circuit:
  1746.  
  1747.  
  1748.                                                    +10 volts
  1749.                                              0  |
  1750.                                                 \   R4
  1751.                                                 /   470 ohms
  1752.                                                 \
  1753.                                                 /
  1754.                                        R3       |
  1755.                                       8.2K      |  3
  1756.                                   +--\/\/\/\----*---------
  1757.                                   |             |         output
  1758.                                   |            /
  1759.                         R1        |         | /
  1760.               1        270 ohms   |   2     |/       2N3904
  1761.                 -------/\/\/\/\---*---------|
  1762.                                   |         |\
  1763.           input              R2   \         | \
  1764.                             1.2K  /           _\/
  1765.                                   \             |
  1766.                                   /             |
  1767.                                   |   0         |
  1768.                 ------------------*-------------*---------
  1769.  
  1770.  
  1771.  
  1772.           As you can see the first thing you need to do is to number
  1773.           the nodes.  Please take a look at the top of R4.  This end
  1774.           of the resistor connects to the +10 supply voltage but we
  1775.           have numbered it as node 0.  This is an important point.
  1776.           Any node that has a DC voltage connection should always be
  1777.           connected to ground.  For the sake of an AC analysis, any DC
  1778.           voltage source is the same thing as ground.
  1779.  
  1780.           Now that we have numbered the nodes, we can describe the
  1781.           circuit:
  1782.  
  1783.                R1 1 2 270
  1784.                R2 2 0 1.2K
  1785.                R3 2 3 8.2K
  1786.                R4 3 0 470
  1787.  
  1788.           Alright, now we are ready for the NPN transistor.  The
  1789.           transistor that we are using is a 2N3904.  We could use a
  1790.           simple one line description for this transistor, but that
  1791.           wouldn't show what happens to the transistor at high
  1792.           frequencies.  What we need is a more sophisticated
  1793.           transistor model.  One that will change its characteristics
  1794.           as the frequency changes like a real transistor.
  1795.  
  1796.  
  1797.  
  1798.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1799.                                                             page 29
  1800.  
  1801.           PC-ECAP has the capability to create just such a model.  But
  1802.           first you need to know some information about the transistor
  1803.           that you want to model.  This is what is required:
  1804.  
  1805.  
  1806.           DC collector current -
  1807.  
  1808.                          For this circuit about 10 milli-amps flows
  1809.                          from the collector to emitter.
  1810.  
  1811.           Transistor current gain -
  1812.  
  1813.                          At 10 ma. this is a minimum of 100.  This is
  1814.                          the same as Beta (the current gain at DC).
  1815.  
  1816.           Transistor Gain-bandwidth product -
  1817.  
  1818.                          For the 2N3904 with a collector current of 10
  1819.                          ma. this is 300 MHz minimum.  This is also
  1820.                          known as Ft.
  1821.  
  1822.           Common base output capacitance -
  1823.  
  1824.                          This is just the capacitance from the base to
  1825.                          the collector.  For the 2N3904 it is 4 pf
  1826.                          maximum.
  1827.  
  1828.  
  1829.           Now that we have the required information we can make a
  1830.           transistor model.  Please note that it doesn't matter for an
  1831.           AC analysis whether the transistor is NPN or PNP.
  1832.  
  1833.           From the editor press F2.  This will start the Model Maker
  1834.           function.  A window will appear and ask first for the node
  1835.           numbers for base, emitter and collector.  You would just
  1836.           enter 2, 0, and 3.  Then you will be asked for the
  1837.           information mentioned above.  After answering all the
  1838.           questions your model will be created and inserted into your
  1839.           circuit description on the line following the cursor.
  1840.  
  1841.           For this circuit we might want to know just how good a
  1842.           frequency response we have, so let's sweep a frequency range
  1843.           of 1 KHz to 100 MHz.  And let's do it logarithmically.  With
  1844.           node 1 as the input and node 3 as the output, this line
  1845.           should make PC-ECAP do what we want:
  1846.  
  1847.                     P 1 3 1KHZ 100MEG LOG
  1848.  
  1849.           As you might notice, PLOT can be abbreviated to P.
  1850.  
  1851.           That's all there is to it.  Run an analysis and see what
  1852.           kind of amplifier we have.  You should also try changing
  1853.           some component values to see what happens.  What happens if
  1854.           you decrease R1?  Or increase it?
  1855.  
  1856.  
  1857.  
  1858.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1859.                                                             page 30
  1860.  
  1861.           Models
  1862.  
  1863.           The circuit models that PC-ECAP uses for Transformers,
  1864.           Bipolar transistors, FET's, Operational Amplifiers, and
  1865.           Transconductance Amplifiers are ideal models.  If you
  1866.           desire, you can easily create models that are more complex.
  1867.  
  1868.           For Bipolar transistors if your need a better model just use
  1869.           the "Model Maker" feature in the editor.  As previously
  1870.           discussed, a Hybrid-Pi transistor model will be created and
  1871.           inserted into your circuit description.
  1872.  
  1873.           For the transformer, the addition of two inductors will make
  1874.           a transformer that is quite "real".  You can add an inductor
  1875.           in parallel with the primary to model the transformer's
  1876.           magnetizing inductance.  This inductor should be equal to
  1877.           the transformer's primary inductance.  The transformer's
  1878.           manufacturer can supply the inductor value for this or you
  1879.           can measure it yourself (the secondary should be open for
  1880.           this test).  A second inductor can be added in series with
  1881.           the primary winding (and the inductor paralleling the
  1882.           primary).  This inductor will model the transformer's
  1883.           "leakage" inductance.  This inductance is due to the
  1884.           magnetic field that does not couple the primary and
  1885.           secondary windings.  Again, the transformer's manufacturer
  1886.           can supply this or you can measure it (measure the primary
  1887.           inductance as before, but this time short out the
  1888.           secondary).  By adding these two inductors, you will create
  1889.           a transformer that has a finite bandwidth.  The parallel
  1890.           inductor affects the low frequencies and the series inductor
  1891.           will affect the high frequencies.
  1892.  
  1893.           For FET's, the addition of a capacitor to model the gate to
  1894.           source capacitance and a second one to model the gate to
  1895.           drain capacitance will improve accuracy at high frequencies.
  1896.           You can get the appropriate values from your transistor's
  1897.           data sheet.  Also the Siliconix Low Power Discretes data
  1898.           book is an excellent source for more information on this.
  1899.  
  1900.           For FET's:     Cgs = Ciss - Cgd = Ciss - Crss
  1901.  
  1902.                          Cgd = Crss
  1903.  
  1904.           Operational Amplifiers today are usually frequency
  1905.           compensated internally.  Most of the time a method called
  1906.           "dominant pole compensation" is used.  This method inserts a
  1907.           pole in the opamp's frequency response at a very low
  1908.           frequency.  This pole will dominate the response (hence the
  1909.           name) and roll off at a 20 db/decade rate.  The opamp model
  1910.           that PC-ECAP uses is not frequency dependent.  The open-loop
  1911.           gain that you ask for is the gain that you will get for all
  1912.           frequencies.  It's not that difficult to make an opamp model
  1913.           that will decrease its gain as frequency increases.  Such a
  1914.           model is included on your disk as OPAMPMOD.DAT.  Please take
  1915.           a look at it.
  1916.  
  1917.  
  1918.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1919.                                                             page 31
  1920.  
  1921.           References for Modeling
  1922.  
  1923.           Although we have tried to give you some useful information
  1924.           to use for modeling circuit elements, a full treatment of
  1925.           the subject is beyond the scope of this manual.  For those
  1926.           of you who are interested, a good college library should
  1927.           have several books that might help.  Two references that may
  1928.           be more readily available for many people are:
  1929.  
  1930.           "National Semiconductor Linear Applications Handbook" from
  1931.  
  1932.           National Semiconductor Corporation
  1933.           2900 Semiconductor Drive
  1934.           Santa Clara, CA 95052-8090
  1935.  
  1936.           This handbook has an excellent paper entitled "The
  1937.           Monolithic Operational Amplifier: A Tutorial Study".  This
  1938.           paper tells you just about everything that you would want to
  1939.           know about the inner workings of opamps.
  1940.  
  1941.           A good reference for FET's in general is:
  1942.  
  1943.           "Siliconix Low Power Discretes Data Book" by
  1944.  
  1945.           Siliconix Incorporated
  1946.           2201 Laurelwood Rd.
  1947.           Santa Clara, CA 95054-1516
  1948.  
  1949.           They have several interesting application notes on the use
  1950.           of FET's.
  1951.  
  1952.  
  1953.           Parting Comments
  1954.  
  1955.           A considerable amount of time and effort was expended to
  1956.           develop PC-ECAP.  We sincerely hope that you feel it was all
  1957.           worth it.  We want you to know that we don't intend to stop
  1958.           here.  We have more ideas for enhancements that we would
  1959.           like to add in future releases.  But it is you that will
  1960.           make it possible.  By registering your copy of PC-ECAP, you
  1961.           will help make the possible into reality.  Thanks for your
  1962.           support.
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  1979.                                                             page 32
  1980.  
  1981.           Revision History
  1982.  
  1983.           Version 2.10 - 11/09/92
  1984.           Now handles circuits with up to 90 nodes.  Added option to
  1985.           print only circuit description and graphs.  Negative
  1986.           inductor values are now accepted.  Changed listing format
  1987.           for frequencies of 10 GHz and above.  Added network (LAN)
  1988.           support.  Fixed "border flash" when switching from graphics
  1989.           to text mode on some CGA cards.  Added table of contents to
  1990.           manual.
  1991.  
  1992.           Version 2.01 - 2/03/92
  1993.           Improved syntax checking on the circuit description files.
  1994.           More input errors are spotted and flagged.
  1995.  
  1996.           Version 2.00 - 10/14/91
  1997.           Added group delay, impedance, VSWR and return loss
  1998.           calculations.  Now has full support for 24 pin printers.
  1999.           Now supports HP LaserJet.  Editor has been enhanced.
  2000.           Analysis routine is now twice as fast as previous versions.
  2001.           Added AT&T and MCGA support.  Added support for a math
  2002.           coprocessor.  European format for element values now
  2003.           accepted.  Improved error checking on circuit description
  2004.           files.  International time and date on printouts now
  2005.           supported.  Numbers are now stored in IEEE binary format.
  2006.           No longer supports "non-compatible" video.  Now requires
  2007.           384K of system memory.
  2008.  
  2009.           Version 1.11 - 11/23/90
  2010.           Added the filename to the headers and plot sheet of the
  2011.           printout.  Negative resistance values are now accepted.
  2012.           Fixed bug in hard copy plotting routine - plot would display
  2013.           spurious points if the plot exceeded the maximum range.
  2014.           Fixed bug in analysis routine; Occasionally, a circuit with
  2015.           a very wide range of reactive component values could create
  2016.           an internal numeric overflow.
  2017.  
  2018.           Version 1.10 - 9/14/90
  2019.           Added the option of 35 sample points to the select number of
  2020.           sample points menu.  Greatly increased the number of plot
  2021.           ranges available when displaying results.  Magnitude now
  2022.           spans .1 db/div to 80 db/div and Phase now spans 22.5
  2023.           degrees/div to 720 degrees/div.
  2024.  
  2025.           Version 1.02 - 1/30/90
  2026.           First release widely distributed.
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  2039.                                                             page 33
  2040.  
  2041.                         Appendix A - Command Line Switches
  2042.  
  2043.  
  2044.           PC-ECAP will automatically determine the type of video
  2045.           display adapter that your computer uses and will set itself
  2046.           accordingly.  There are a few situations where it is not
  2047.           possible to accurately determine the adapter type.  For
  2048.           example, if a monochrome monitor is used with a CGA card,
  2049.           the program has no way of knowing that.  Also, there are
  2050.           some advanced EGA cards that will change their display mode
  2051.           to match a given program.  Since PC-ECAP is trying to change
  2052.           its mode to match the video adapter, there can be no
  2053.           guarantee as to what you will actually wind up with.
  2054.  
  2055.           In order to accommodate these situations (as well as others
  2056.           that may be unforeseen at this time) PC-ECAP has a series of
  2057.           optional command line switches that can be used to set the
  2058.           video display mode.
  2059.  
  2060.           To start PC-ECAP with a command line option, type this at
  2061.           the DOS prompt:
  2062.  
  2063.  
  2064.                     ECAP    [ option ]
  2065.  
  2066.  
  2067.           Where "option" is one of the following:
  2068.  
  2069.  
  2070.                /H        Hercules Monochrome Graphics card (or
  2071.                          compatible).
  2072.  
  2073.                /C        Color/Graphics Adapter with color monitor.
  2074.  
  2075.                /CM       Color/Graphics Adapter with monochrome
  2076.                          monitor.  For use with Compaq monochrome
  2077.                          display or computers having LCD displays.
  2078.  
  2079.                /E        Enhanced Graphics Adapter with EGA monitor.
  2080.  
  2081.                /EC       Enhanced Graphics Adapter with CGA monitor.
  2082.  
  2083.                /EM       Enhanced Graphics Adapter with monochrome
  2084.                          monitor.
  2085.  
  2086.                /MC       Multi-Color Graphics Array.
  2087.  
  2088.                /M        Monochrome Display Adapter.
  2089.  
  2090.                /A        AT&T or Olivetti video adapter with color
  2091.                          monitor.
  2092.  
  2093.                /AM       AT&T or Olivetti video adapter with
  2094.                          monochrome monitor.  May also be useful for
  2095.                          some Laptop computers.
  2096.  
  2097.  
  2098.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  2099.                                                             page 34
  2100.  
  2101.                            Appendix B - Error Messages
  2102.  
  2103.  
  2104.           ABORT -- Bad circuit description
  2105.  
  2106.                The PLOT statement must be the last line of your
  2107.                circuit description.  You have entered additional
  2108.                circuit elements after the PLOT statement.  Move these.
  2109.  
  2110.  
  2111.           ABORT -- Blinking nodes have been skipped
  2112.  
  2113.                You have skipped over one or more nodes in your circuit
  2114.                description.  Node numbers must begin at 0, and be
  2115.                numbered consecutively.
  2116.  
  2117.  
  2118.           ABORT -- Blinking nodes have less than two components
  2119.  
  2120.                Your circuit description has one or more "dangling"
  2121.                components.  All nodes (other than the input) must have
  2122.                at least two components attached.
  2123.  
  2124.  
  2125.           ABORT -- Insufficient memory for operation
  2126.  
  2127.                PC-ECAP makes extensive use of dynamic memory.  That
  2128.                is, memory that it allocates only when needed.
  2129.                Although this makes for very efficient memory usage,
  2130.                peak memory requirements can not be known up front.
  2131.                Your only choice here is to do without the feature
  2132.                that gave you this error or get more RAM memory for
  2133.                your computer.
  2134.  
  2135.  
  2136.           ABORT -- Invalid circuit element
  2137.  
  2138.                You have an unknown circuit element in your circuit
  2139.                description file.  Valid lines must be either blank,
  2140.                begin with a semicolon ";" (if a comment), or begin
  2141.                with one of the letters of a circuit element.
  2142.  
  2143.  
  2144.           ABORT -- Invalid node number
  2145.  
  2146.                You have a circuit element that has one or more node
  2147.                numbers that is not an integer, is negative or is
  2148.                greater than 89.
  2149.  
  2150.  
  2151.           ABORT -- Invalid reference impedance
  2152.  
  2153.                You have asked to compute the VSWR or return loss for a
  2154.                circuit, but have not specified an impedance to
  2155.                reference these calculations to.  Or your impedance is
  2156.                negative or zero.  Must be a positive value.
  2157.  
  2158.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  2159.                                                             page 35
  2160.  
  2161.           ABORT -- Too many circuit nodes
  2162.  
  2163.                You have 1 or more circuit nodes with a number greater
  2164.                than 89, either because you actually have a circuit
  2165.                with more than 90 nodes or you have made a typo and
  2166.                have inadvertently skipped some.
  2167.  
  2168.  
  2169.           ABORT -- Too many circuit elements
  2170.  
  2171.                You have exceeded the limit of 1000 circuit elements.
  2172.                R, C, L, Fet's and Transconductance amplifiers each
  2173.                count as one circuit element.  OpAmps and Bipolar
  2174.                transistors count as two.  Transformers count as four.
  2175.  
  2176.  
  2177.           ABORT -- Unknown sweep type
  2178.  
  2179.                You have specified a sweep type that is something other
  2180.                than LINear or LOGarithmic (may be abbreviated to the
  2181.                letters shown capitalized).
  2182.  
  2183.  
  2184.           CAUTION! Conflicting transistor parameters supplied
  2185.  
  2186.                The data that you have entered for your transistor
  2187.                doesn't make any sense.  For example - you may have
  2188.                said that your transistor has a very high cutoff
  2189.                frequency and then specified a huge base to collector
  2190.                capacitance.  Or you may have specified a very low
  2191.                collector current and a high cutoff frequency.  Things
  2192.                that contradict each other.  Recheck your data and
  2193.                change if necessary.
  2194.  
  2195.  
  2196.           ECAPHERC.DRV is not found
  2197.  
  2198.                You have a Hercules or Hercules compatible graphics
  2199.                card, and the required driver ECAPHERC.DRV is missing.
  2200.                This driver is needed to display text when PC-ECAP is
  2201.                in graphics mode.  If you have DOS version 3.0 or
  2202.                greater, PC-ECAP will look for this file in the same
  2203.                directory that contains ECAP.EXE.  This may be
  2204.                different than the directory that contains your circuit
  2205.                files.  Otherwise, ECAP.EXE and ECAPHERC.DRV should be
  2206.                in the current directory.
  2207.  
  2208.  
  2209.           File is currently being used by someone else
  2210.  
  2211.                You can get this message when you are running PC-ECAP
  2212.                on a network or multi-user system and you attempt to
  2213.                access a file that is already in use.  Wait until the
  2214.                file is available or pick a different file.
  2215.  
  2216.  
  2217.  
  2218.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  2219.                                                             page 36
  2220.  
  2221.           Floating point math error -
  2222.  
  2223.                It should not be possible to get this error.  If it has
  2224.                occurred, please send us a complete description of what
  2225.                you did to get it, so that we may look into the
  2226.                problem.
  2227.  
  2228.  
  2229.           Input File Size Limit Reached
  2230.  
  2231.                PC-ECAP allocates a 384 line buffer for its editor.
  2232.                Your circuit description file has exceeded this amount.
  2233.                The only way this should happen is if you have filled
  2234.                your circuit description file with comments or other
  2235.                nonessential information.  Remove the extra data.
  2236.  
  2237.  
  2238.           Insufficient disk space
  2239.  
  2240.                Well, what can we say, your disk is full.  Delete those
  2241.                files that you really don't need or get a bigger disk.
  2242.  
  2243.  
  2244.           LPT1, LPT2 or LPT3 is not ready
  2245.  
  2246.                You requested PC-ECAP to print something but your
  2247.                printer isn't ready.  Check to see that your printer's
  2248.                power is turned on.  Also check to see if your
  2249.                printer's cable is connected.  You will also get this
  2250.                message if you try to print on a printer that does not
  2251.                exist.
  2252.  
  2253.  
  2254.           No files found.  Enter name of new file.
  2255.  
  2256.                When you tried to select an input file, PC-ECAP didn't
  2257.                find any that had the extension ".DAT".  If you
  2258.                actually believe that there should be circuit
  2259.                description files in you current directory, quit
  2260.                PC-ECAP and check to see if you are in the correct
  2261.                directory.
  2262.  
  2263.  
  2264.           Not enough space for . . .
  2265.  
  2266.                You are out of memory and PC-ECAP is unable to load.
  2267.                Remove any TSR programs from memory or get more memory
  2268.                for your computer.
  2269.  
  2270.  
  2271.           Please create this file or select another
  2272.  
  2273.                You have asked for an analysis of a circuit that does
  2274.                not exist.  Use the text editor to create a circuit
  2275.                description file for your circuit.
  2276.  
  2277.  
  2278.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  2279.                                                             page 37
  2280.  
  2281.           Please run an analysis or select another
  2282.  
  2283.                You have asked to see the results of a circuit that you
  2284.                haven't analyzed yet.  Run an analysis.
  2285.  
  2286.  
  2287.           Unable to delete "filename"
  2288.  
  2289.                You tried to delete a file that was most likely marked
  2290.                as Read Only.  Check to see if this is the case and
  2291.                change the file's attribute if necessary.
  2292.  
  2293.  
  2294.           You have enough memory to analyze circuits with
  2295.                up to ## nodes.
  2296.  
  2297.                If your computer has less than 430K of free memory
  2298.                available, you will see this message when you start
  2299.                PC-ECAP.  The program is giving an estimate of the
  2300.                maximum circuit size that you can analyze based on the
  2301.                amount of memory in your system.
  2302.  
  2303.  
  2304.           Your copy of PC-ECAP has been damaged!
  2305.  
  2306.                Someone or something (another program perhaps) has
  2307.                changed your copy of ECAP.EXE.  PC-ECAP checks itself
  2308.                every time it runs and this check has failed.
  2309.                Reinstall the program.
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325.  
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.  
  2334.  
  2335.  
  2336.  
  2337.  
  2338.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  2339.                                                             page 38
  2340.  
  2341.                                    Appendix C
  2342.                     PC-ECAP to Lotus 1-2-3 file conversion
  2343.  
  2344.  
  2345.           Included with the REGISTERED version of PC-ECAP is the
  2346.           utility program ECAP2WKS.  This program can be used to
  2347.           convert PC-ECAP ".OUT" files into Lotus 1-2-3 compatible
  2348.           spreadsheets.  This can be very useful if you want to do
  2349.           additional operations on your data, such as normalizing
  2350.           circuit gain at a particular frequency or plotting several
  2351.           quantities on the same graph.
  2352.  
  2353.           These PC-ECAP spreadsheets can be used with just about all
  2354.           of the popular spreadsheet programs such as Lotus 1-2-3,
  2355.           Quattro Pro, Microsoft Excel and the excellent shareware
  2356.           program AS-EASY-AS.
  2357.  
  2358.           To convert a file just type:
  2359.  
  2360.  
  2361.                ECAP2WKS  filename.out
  2362.  
  2363.  
  2364.           Filename.out should of course be the name of the PC-ECAP
  2365.           file that you want to convert.  If you don't specify a file
  2366.           extension, ".OUT" will be assumed.  As an option, you can
  2367.           also specify the name of the converted ".WKS" file.  To do
  2368.           this, just add its name after "filename.out".  The ".WKS"
  2369.           file extension is optional:
  2370.  
  2371.  
  2372.                ECAP2WKS  filename.out   filename.wks
  2373.  
  2374.  
  2375.           ECAP2WKS will accept wildcards.  For example, to convert all
  2376.           files beginning with "BAND", such as "BAND_ONE", "BAND_TWO",
  2377.           etc., type:
  2378.  
  2379.  
  2380.                ECAP2WKS  band*.out
  2381.  
  2382.  
  2383.           And finally, you may also specify full drive and path
  2384.           specifications along with the filenames.  For example:
  2385.  
  2386.  
  2387.                ECAP2WKS  D:\ecap\lowpass.out  C:\lotus\123files\
  2388.  
  2389.  
  2390.           will convert "LOWPASS.OUT" to "LOWPASS.WKS" and place it in
  2391.           the \LOTUS\123FILES subdirectory on drive C:.
  2392.  
  2393.           ECAP2WKS checks to see if the file specified is really a
  2394.           PC-ECAP ".OUT" file before attempting a conversion.
  2395.  
  2396.  
  2397.  
  2398.            PC-ECAP Reference Manual           (c) 1992 Circuit Systems
  2399. 
  2400.